package com.prodog.commonmodule.prop.caculate.handler;

import com.prodog.commonmodule.prop.caculate.factory.ObjPropHandlerFactory;
import com.prodog.commonmodule.prop.entity.ObjProp;
import com.prodog.usermodule.role.entity.RoleInfo;
import com.prodog.usermodule.role.entity.RoleProp;
import com.prodog.utils.interfaces.AutowiredBean;

import java.util.Map;

public class RolePropHandler implements AutowiredBean, ObjPropHandler<RoleProp> {
    private Map<String, Object> param;
    private RoleInfo roleInfo;

    public RolePropHandler() {
        autowired();
    }

    public RolePropHandler(Map<String, Object> param) {
        this();
        this.param = param;
        this.roleInfo = (RoleInfo) param.get(ObjPropHandlerFactory.KEY_ROLE_INFO);
    }

    @Override
    public ObjProp handle(RoleProp prop) {
        return prop;
    }
}
